package com.limeng;

import com.limeng.sys.entity.User;
import com.limeng.sys.service.IUserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

public class test {

    @Autowired
    private IUserService userService;

    @Test
    public void login(User user){
        user.setPassword("123456");
        user.setUsername("admin");

        Map<String, Object> login = userService.login(user);
        System.out.println(login);
    }
}
